home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / language / ici / ici.cpi / op.h < prev    next >
C/C++ Source or Header  |  1994-10-27  |  625b  |  35 lines

  1. #ifndef    ICI_OP_H
  2. #define    ICI_OP_H
  3.  
  4. #ifndef    ICI_OBJECT_H
  5. #include "object.h"
  6. #endif
  7.  
  8. struct op
  9. {
  10.     object_t    o_head;
  11.     int        (*op_func)();
  12.     int        op_ecode;    /* See OP_* below. */
  13.     int        op_code;
  14. };
  15. #define    opof(o)    ((op_t *)o)
  16. #define    isop(o)    ((o)->o_tcode == TC_OP)
  17.  
  18. #define    OP_OTHER    0    /* Use op_func. */
  19. #define    OP_CALL        1
  20. #define    OP_NAMELVALUE    2
  21. #define    OP_DOT        3
  22. #define    OP_DOTKEEP    4
  23. #define    OP_DOTRKEEP    5
  24. #define    OP_ASSIGN    6
  25. #define    OP_ASSIGNKEEP    7
  26. #define    OP_EXEC        8
  27. #define    OP_LOOP        9
  28. #define    OP_IFNOTBREAK    10
  29. #define    OP_BREAK    11
  30. #define    OP_QUOTE    12
  31. #define    OP_BINOP    13
  32. #define    OP_AT        14
  33. #define    OP_SWAP        15
  34. #endif
  35.